//
//  UIImageView+imageId.h
//  seafishing2
//
//  Created by zhaoyk10 on 13-12-5.
//  Copyright (c) 2013年 Szfusion. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <SDWebImage/SDWebImageManager.h>


#pragma mark  图片裁剪添加新参数  isNew  为新的裁剪方式

#define VIP_TAG (17336695)
@interface UIImageView (imageId)
@property (nonatomic, weak) UIImageView *yhVipImg;
@property (nonatomic, weak) CALayer *defaultLayer;

- (void)setImageWithImageId:(NSString *)imageId;
#pragma mark  图片裁剪添加新参数  isNew  为新的裁剪方式  添加该如下API 以前老的API默认isNew参数为NO
- (void)setImageWithImageId:(NSString *)imageId isNew:(BOOL)isNew;
- (void)setImageWithImageId:(NSString *)imageId placeHolder:(UIImage *)placeHolderImage;
- (void)setImageWithImageId:(NSString *)imageId size:(CGSize)size;

#pragma mark  图片裁剪添加新参数  isNew  为新的裁剪方式  添加该如下API 以前老的API默认isNew参数为NO
- (void)setImageWithImageId:(NSString *)imageId size:(CGSize)size isNew:(BOOL)isNew;
- (void)setImageWithImageId:(NSString *)imageId size:(CGSize)size placeHolder:(UIImage *)placeHolderImage;
- (void)setImageWithImageId:(NSString *)imageId size:(CGSize)size placeHolder:(UIImage *)placeHolderImage completed:(SDWebImageCompletionBlock)completedBlock;
- (void)setRoundImageWithImageId:(NSString *)imageId placeHolder:(UIImage *)placeHolderImage;

- (void)setImageWithAvatar:(NSString *)imageId;
- (void)setRoundImageWithAvatar:(NSString *)imageId;

- (void)hideVIP:(BOOL)hide;
@end
